package com.chinaisafe.user.vo.request;

import com.chinaisafe.base.common.validated.AddGroup;
import com.chinaisafe.base.common.vo.request.PageReqVo;
import com.chinaisafe.base.common.validated.UpdateGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * SysDeptDimensionReqVO
 * Description：部门维度请求值对象
 *
 * @author tby
 * @date  2024-07-16 14:28:47
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(name = "SysDeptDimensionReqVO", description = "部门维度请求值对象")
public class SysDeptDimensionReqVO extends PageReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @NotNull(groups = UpdateGroup.class, message = "主键id不能为空" )
    private Long id;

    @Schema(description = "乐观锁版本")
    private Integer version;

    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空",groups = AddGroup.class)
    private String name;

    @Schema(description = "编码")
    @NotBlank(message = "编码不能为空",groups = AddGroup.class)
    private String code;

    @Schema(description = "说明")
    private String summary;

}
